package lt.inkredibl.iit;

import java.awt.geom.Point2D;


public class DrawableEdge
	implements Drawable
{
	private Edge _edge;

	public DrawableEdge(Edge edge)
	{
		_edge = edge;
	}

	public static DrawableEdge valueOf(Edge edge)
	{
		return new DrawableEdge(edge);
	}

	public void draw(Grapher g)
	{
		for (Point2D pt: _edge.getPoints())
		{
			g.drawMicroMarker(pt);
		}
	}

}
